Skip to content

Conversation

davidemoro
Copy link

Many pyramid applications are using the deprecated pyramid.security.has_permission API:

DeprecationWarning: has_permission: As of Pyramid 1.5 the "pyramid.security.has_permission" API is now deprecated. It will be removed in Pyramid 1.8. Use the "has_permission" method of the Pyramid request instead.

This PR add a repoze.workflow.has_permission (defined in the repoze.workflow.security module) that invokes request.has_permission so people using the deprecated permission checker will be able to avoid the deprecation using the one provided by repoze.workflow.

cc: @disko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant